Skip to content

Commit

Permalink
Update docs++
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafauysal committed May 14, 2024
1 parent b4fd2a7 commit efb0f3e
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 19 deletions.
5 changes: 3 additions & 2 deletions docs/classes_Config.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,15 @@ <h1 class="page-title">Source: classes/Config.php</h1>
$string .= "define( 'POWERED_CACHE_PAGE_CACHING', true );" . PHP_EOL . PHP_EOL;
// lookup order 1) network-wide , 2) subdomain specific (if any) 3) domain specific
$string .= "\$config_locations[] = WP_CONTENT_DIR . '/pc-config/config-network.php';" . PHP_EOL;
$string .= "\$host = isset( \$_SERVER['HTTP_HOST'] ) ? \$_SERVER['HTTP_HOST'] : '';" . PHP_EOL . PHP_EOL;
$string .= "if ( is_multisite() &amp;&amp; defined( 'SUBDOMAIN_INSTALL' ) &amp;&amp; ! SUBDOMAIN_INSTALL ) {" . PHP_EOL;
$string .= "\t" . "\$request_uri = explode( '/', ltrim( \$_SERVER['REQUEST_URI'], '/' ) );" . PHP_EOL;
$string .= "\t" . 'if ( ! empty( $request_uri[0] ) ) {' . PHP_EOL;
$string .= "\t" . "\t" . "\$config_locations[] = WP_CONTENT_DIR . '/pc-config/config-' . \$_SERVER['HTTP_HOST'] . '-' . \$request_uri[0] . '.php';" . PHP_EOL;
$string .= "\t" . "\t" . "\$config_locations[] = WP_CONTENT_DIR . '/pc-config/config-' . \$host . '-' . \$request_uri[0] . '.php';" . PHP_EOL;
$string .= "\t" . '}' . PHP_EOL;
$string .= '}' . PHP_EOL;

$string .= "\$config_locations[] = WP_CONTENT_DIR . '/pc-config/config-' . \$_SERVER['HTTP_HOST'] . '.php';" . PHP_EOL . PHP_EOL;
$string .= "\$config_locations[] = WP_CONTENT_DIR . '/pc-config/config-' . \$host . '.php';" . PHP_EOL . PHP_EOL;

$string .= 'foreach ( $config_locations as $config_file ) {' . PHP_EOL;
$string .= "\t" . 'if ( @file_exists( $config_file ) ) {' . PHP_EOL;
Expand Down
8 changes: 8 additions & 0 deletions docs/classes_FileOptimizer.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,17 @@ <h1 class="page-title">Source: classes/FileOptimizer.php</h1>
$html_min = new HtmlMin();
$html_min->doOptimizeViaHtmlDomParser( $this->settings['minify_html_dom_optimization'] );
$html_min->doRemoveOmittedQuotes( false );
$html_min->doRemoveOmittedHtmlTags( false );
$html_min->overwriteSpecialScriptTags( [ 'x-tmpl-mustache', 'text/template' ] );
$buffer = $html_min->minify( $buffer );

if ( ! $this->settings['minify_html_dom_optimization'] ) {
// Remove line breaks and spaces between tags
$buffer = preg_replace( '/>\s+&lt;/', '>&lt;', $buffer );
// Remove comments
$buffer = preg_replace( '/&lt;!--(.|\s)*?-->/', '', $buffer );
}

return $buffer;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_advanced_cache_file_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line243">line 243</a>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line244">line 244</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_after_clean_up.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h4 class="name" id="powered_cache_after_clean_up">do_action( 'powered_cache_aft

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line759">line 759</a>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line760">line 760</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_auto_htaccess_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line356">line 356</a>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line357">line 357</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_create_config_file.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line519">line 519</a>
<a href="classes_Config.php.html">classes/Config.php</a>, <a href="classes_Config.php.html#line520">line 520</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_delayed_js_script_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line771">line 771</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line779">line 779</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_delayed_js_script_loader.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line799">line 799</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line807">line 807</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_delayed_js_skip.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line708">line 708</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line716">line 716</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_delayed_js_timeout.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line745">line 745</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line753">line 753</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_disable_js_defer.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line328">line 328</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line336">line 336</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_disable_js_defer_inline.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line850">line 850</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line858">line 858</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_fo_allow_gzip_compression.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line491">line 491</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line499">line 499</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_fo_disable_css_combine.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line514">line 514</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line522">line 522</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_fo_disable_css_minify.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line364">line 364</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line372">line 372</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_fo_disable_js_combine.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line474">line 474</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line482">line 482</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_fo_disable_js_minify.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line420">line 420</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line428">line 428</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_fo_google_font_display.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line634">line 634</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line642">line 642</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion docs/powered_cache_fo_google_fonts_domain.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line650">line 650</a>
<a href="classes_FileOptimizer.php.html">classes/FileOptimizer.php</a>, <a href="classes_FileOptimizer.php.html#line658">line 658</a>
</li></ul></dd>


Expand Down

0 comments on commit efb0f3e

Please sign in to comment.