Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('template_redirect', function(){
- if (isset($_GET['clear-cache']) && $_GET['clear-cache'] == 'a3ef456de32e' && class_exists('Swift_Performance_Cache')){
- Swift_Performance_Cache::clear_all_cache();
- }
- });
- // Set a real cronjob: curl "https://yoursite.com/?clear-cache=a3ef456de32e"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement