Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Commit

Permalink
Fix for "Fatal error: Uncaught exception 'Exception' with message 'un…
Browse files Browse the repository at this point in the history
…known engine'" (#553)

* Fix Fatal error: Uncaught exception 'Exception' with message 'unknown engine'

* Update readme
  • Loading branch information
nigrosimone committed Jan 18, 2018
1 parent 14232d1 commit 42566e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Cdnfsd_CacheFlush.php
Expand Up @@ -196,10 +196,10 @@ static public function w3tc_flush_execute_delayed_operations( $actions_made ) {

if ( $o->flush_all_requested ) {
$core = Dispatcher::component( 'Cdnfsd_Core' );
$engine = $core->get_engine();


try {
$engine = $core->get_engine();

if ( !is_null( $engine ) ) {
$engine->flush_all();
$actions_made[] = array( 'module' => 'cdn' );
Expand All @@ -219,8 +219,10 @@ static public function w3tc_flush_execute_delayed_operations( $actions_made ) {
$urls = array_keys( $o->queued_urls );

$core = Dispatcher::component( 'Cdnfsd_Core' );
$engine = $core->get_engine();

try {
$engine = $core->get_engine();

if ( !is_null( $engine ) ) {
$engine->flush_urls( $urls );
$actions_made[] = array( 'module' => 'cdn' );
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -25,4 +25,5 @@ Since the last [official release](https://wordpress.org/plugins/w3-total-cache/)
<!--- :diamond_shape_with_a_dot_inside: Update | [Label](https://github.com/) | --->

Type | More Information |
:--- | --- |
:--- | --- |
:beetle: Bug Fix | [Fix for "Fatal error: Uncaught exception 'Exception' with message 'unknown engine'"](https://github.com/szepeviktor/w3-total-cache-fixed/pull/553) |

0 comments on commit 42566e2

Please sign in to comment.