Comments (6)
@crazypioneer the docs go through an efficient way of busting the cache here
In terms of timing, as its something that is handled at the server level not the Rails app I would probably schedule this using a nightly CRON job.
from actionpack-page_caching.
Thank you for your kind.
As expected, CRON job....
from actionpack-page_caching.
@robzolkos
Excuse me.
Could you show me simple example?
I'm asking it on stackoverflow, too
from actionpack-page_caching.
This is a pretty good intruduction to cron https://www.google.com/amp/s/www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/amp/
from actionpack-page_caching.
Thank you.
Not about CRON but about updating cache.
Should I run below command inside CRON JOB function?
tmp=public/cached_pages-$(date +%s)
mv public/cached_pages $tmp
rm -rf $tmp
from actionpack-page_caching.
I used this.
Thank you.
FileUtils.rm_rf('dir/to/remove')
from actionpack-page_caching.
Related Issues (20)
- Rails 5 Support HOT 6
- There is a way to use it with I18n ? HOT 1
- Rails 5 status? HOT 3
- multi domain issue HOT 1
- New changes broke gem and it generate empty files HOT 5
- Defining cache directory using domain is not working HOT 1
- Not working from inside engine controller
- Rails 5.2 Support HOT 4
- double slashed home page url creates `.html` page cache file HOT 3
- Page Caching - Errno::EACCES (Permission denied @ dir_s_mkdir - /api) HOT 1
- Not writing files to cache after upgrade to Rails 5.1 HOT 1
- caching for API that include parameters HOT 1
- Will you accept PR that introduce brotli compression? HOT 2
- Release a new version compatible with rails 6 HOT 3
- 1.2.1 breaks homepage HOT 3
- Release notes or Changelog for new versions? HOT 1
- Caching async pages HOT 1
- URI.parser is deprecated and will be removed in Rails 6.2 HOT 1
- Js stimulus, i18n and cache HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actionpack-page_caching.