-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi, I noticed that this bug occurs when using the plugin with Timber v1.
in clear-cache-for-timber.php
function clear_cache_for_timber_clear_cache() {
if (class_exists('Timber\Cache\Cleaner')) {
return Timber\Cache\Cleaner::clear_cache_twig();
}
else if (class_exists('Timber\\Integrations\\Command')) {
return \Timber\Integrations\Command::clear_cache();
}
else {
return TimberCommand::clear_cache();
}
}
Basically, the first check you do doesn't work because it can't find the clear_cache_twig() method and results in a 500 error. To quickly fix it, I swapped the first two if statements, but I'm sure there's a better way to fix it!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels