Skip to content

Commit

Permalink
Revert 88797f8
Browse files Browse the repository at this point in the history
also removes 3da1900
  • Loading branch information
lachlan-00 committed Nov 13, 2021
1 parent 410d940 commit e797430
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 149 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public/develop
public/master
public/foam
public/ample
*_cached_by_ampache_*.*
storage/
tmp/
/vendor/
Expand Down
7 changes: 3 additions & 4 deletions public/templates/header.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use Ampache\Module\System\AutoUpdate;
use Ampache\Module\System\Core;
use Ampache\Module\Util\AjaxUriRetrieverInterface;
use Ampache\Module\Util\AssetCache;
use Ampache\Module\Util\Mailer;
use Ampache\Module\Util\Ui;
use Ampache\Repository\PrivateMessageRepositoryInterface;
Expand Down Expand Up @@ -100,9 +99,9 @@
<script src="<?php echo $web_path; ?>/lib/components/jQuery-File-Upload/js/jquery.iframe-transport.js" defer></script>
<script src="<?php echo $web_path; ?>/lib/components/jQuery-File-Upload/js/jquery.fileupload.js" defer></script>
<script src="<?php echo $web_path; ?>/lib/components/jQuery-contextMenu/dist/jquery.contextMenu.js"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/base.js'); ?>" defer></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/ajax.js'); ?>" defer></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/tools.js'); ?>" defer></script>
<script src="<?php echo $web_path; ?>/lib/javascript/base.js" defer></script>
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js" defer></script>
<script src="<?php echo $web_path; ?>/lib/javascript/tools.js" defer></script>

<script>
$(document).ready(function(){
Expand Down
3 changes: 0 additions & 3 deletions public/templates/show_debug.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
<li>
<a href="<?php echo $web_path; ?>/admin/system.php?action=clear_cache&type=album"><?php echo Ui::get_icon('cog', T_('Clear Albums Cache')) . ' ' . T_('Clear Albums Cache'); ?></a>
</li>
<li>
<a href="<?php echo $web_path; ?>/admin/system.php?action=clear_cache&type=asset"><?php echo Ui::get_icon('cog', T_('Clear Assets Cache')) . ' ' . T_('Clear Assets Cache'); ?></a>
</li>
</ul>
</div>

Expand Down
7 changes: 3 additions & 4 deletions public/templates/show_html5_player_headers.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use Ampache\Module\Broadcast\Broadcast_Server;
use Ampache\Module\Playback\Stream;
use Ampache\Module\Util\AjaxUriRetrieverInterface;
use Ampache\Module\Util\AssetCache;
use Ampache\Module\Util\Ui;

global $dic;
Expand All @@ -30,9 +29,9 @@
<script src="<?php echo $web_path; ?>/lib/components/jquery/jquery.min.js"></script>
<script src="<?php echo $web_path; ?>/lib/components/jquery-ui/jquery-ui.min.js"></script>
<script src="<?php echo $web_path; ?>/lib/components/js-cookie/js-cookie-built.js"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/base.js'); ?>"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/ajax.js'); ?>"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/tools.js'); ?>"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/base.js"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/tools.js"></script>
<script>
var jsAjaxServer = "<?php echo $ajaxUriRetriever->getAjaxServerUri(); ?>";
var jsAjaxUrl = "<?php echo $ajaxUriRetriever->getAjaxUri(); ?>";
Expand Down
5 changes: 2 additions & 3 deletions public/templates/show_registration_confirmation.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

use Ampache\Config\AmpConfig;
use Ampache\Module\Util\AssetCache;
use Ampache\Module\Util\Ui;

$htmllang = str_replace("_", "-", AmpConfig::get('lang'));
Expand All @@ -43,8 +42,8 @@
<a href="<?php echo $web_path; ?>"><h1 id="headerlogo"></h1></a>
</div>
<script src="<?php echo $web_path; ?>/lib/components/jquery/jquery.min.js"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/base.js'); ?>"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/ajax.js'); ?>"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/base.js"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js"></script>
<div id="content">
<div id="guts">
<?php
Expand Down
5 changes: 2 additions & 3 deletions public/templates/show_user_activate.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

use Ampache\Config\AmpConfig;
use Ampache\Module\Util\AssetCache;
use Ampache\Module\Util\Ui;

$htmllang = str_replace("_", "-", AmpConfig::get('lang'));
Expand All @@ -42,8 +41,8 @@
<span><?php echo T_('Registration Validation'); ?>.</span>
</div>
<script src="<?php echo $web_path; ?>/lib/components/jquery/jquery.min.js"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/base.js'); ?>"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/ajax.js'); ?>"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/base.js"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js"></script>
<div>
<?php
if ($validationResult) {
Expand Down
5 changes: 2 additions & 3 deletions public/templates/show_user_registration.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use Ampache\Module\System\AmpError;
use Ampache\Module\System\Core;
use Ampache\Module\User\Registration;
use Ampache\Module\Util\AssetCache;
use Ampache\Module\Util\Captcha\captcha;
use Ampache\Module\Util\Ui;

Expand All @@ -50,8 +49,8 @@

<body id="registerPage">
<script src="<?php echo $web_path; ?>/lib/components/jquery/jquery.min.js"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/base.js'); ?>"></script>
<script src="<?php echo AssetCache::get_url($web_path . '/lib/javascript/ajax.js'); ?>"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/base.js"></script>
<script src="<?php echo $web_path; ?>/lib/javascript/ajax.js"></script>

<div id="maincontainer">
<div id="header">
Expand Down
11 changes: 5 additions & 6 deletions public/templates/stylesheets.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

use Ampache\Config\AmpConfig;
use Ampache\Module\Util\AssetCache;
use Ampache\Module\Util\Ui;

$web_path = AmpConfig::get('web_path');
Expand All @@ -32,16 +31,16 @@
$theme_css_base = array($theme_css_base);
}
foreach ($theme_css_base as $css_base) { ?>
<link rel="stylesheet" href="<?php echo AssetCache::get_url($web_path . $theme_path . '/' . $css_base[0]); ?>" type="text/css" media="<?php echo $css_base[1]; ?>" />
<link rel="stylesheet" href="<?php echo $web_path . $theme_path . '/' . $css_base[0]; ?>" type="text/css" media="<?php echo $css_base[1]; ?>" />
<?php
} ?>
<link rel="stylesheet" href="<?php echo AssetCache::get_url($web_path . '/templates/base.css'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo AssetCache::get_url($web_path . $theme_path . '/' . $theme_color . '.css'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo AssetCache::get_url($web_path . '/templates/print.css'); ?>" type="text/css" media="print" />
<link rel="stylesheet" href="<?php echo $web_path . '/templates/base.css'; ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $web_path . $theme_path . '/' . $theme_color . '.css'; ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $web_path . '/templates/print.css'; ?>" type="text/css" media="print" />
<?php
if (is_rtl(AmpConfig::get('lang'))
&& is_file(__DIR__ . '/../../public/' . $theme_path . '/rtl.css')) { ?>
<link rel="stylesheet" href="<?php echo AssetCache::get_url($web_path . $theme_path . '/rtl.css'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $web_path . $theme_path; ?>/rtl.css" type="text/css" media="screen" />
<?php } ?>
<link rel="stylesheet" href="<?php echo $web_path . '/lib/components/prettyphoto/css/prettyPhoto.css'; ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $web_path . '/templates/jquery-ui.custom.css'; ?>" type="text/css" media="screen" />
Expand Down
4 changes: 0 additions & 4 deletions src/Module/Application/Admin/System/ClearCacheAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
use Ampache\Module\Application\Exception\AccessDeniedException;
use Ampache\Module\Authorization\AccessLevelEnum;
use Ampache\Module\Authorization\GuiGatekeeperInterface;
use Ampache\Module\Util\AssetCache;
use Ampache\Module\Util\UiInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
Expand Down Expand Up @@ -80,9 +79,6 @@ public function run(ServerRequestInterface $request, GuiGatekeeperInterface $gat
case 'album':
Album::clear_cache();
break;
case 'asset':
AssetCache::clear_cache();
break;
}

$this->ui->showConfirmation(
Expand Down
2 changes: 0 additions & 2 deletions src/Module/System/AutoUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

use Ampache\Config\AmpConfig;
use Ampache\Config\ConfigContainerInterface;
use Ampache\Module\Util\AssetCache;
use Exception;
use Ampache\Repository\Model\Preference;
use Requests;
Expand Down Expand Up @@ -315,7 +314,6 @@ public static function update_files($api = false)
if (!$api) {
echo T_('Done') . '<br />';
}
AssetCache::clear_cache();
ob_flush();
self::get_latest_version(true);
}
Expand Down
116 changes: 0 additions & 116 deletions src/Module/Util/AssetCache.php

This file was deleted.

0 comments on commit e797430

Please sign in to comment.