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

Fix for "Fatal error: Uncaught exception 'Exception' with message 'unknown engine'" #553

Merged
merged 2 commits into from
Jan 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Cdnfsd_CacheFlush.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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) |