Rebuild cache seems to not work correctly

#21
Hello,ok i managed to fix all the errors but one remains,that one with 3 buttons of purge all cache from the post above,I think it can be solved in the stylesheet in the view folder, but I don't know exactly what to do!
opencart 3.0.3.8
journal 3.1.10
  • Apache Version2.4.52
  • PHP Version7.3.33
  • MySQL Version10.3.32-MariaDB-cll-lve
  • Architecturex86_64
  • Operating System linux
  • Perl Version 5.16.3
  • Kernel Version 3.10.0-962.3.2.lve1.5.63.el7.x86_64

  • Thank you!
 

AndreyPopov

Well-Known Member
#22
one remains,that one with 3 buttons of purge all cache

this button described in
admin/controller/extension/module/lscache.php
by this code:

PHP:
    public function purgeAllButton($route, &$args, &$output){
        if ($this->user && $this->user->hasPermission('modify', 'extension/module/lscache')) {
            $lan = new Language();
            $lan->load('extension/module/lscache');
            $button = '<li><a href="' . $this->url->link('extension/module/lscache', 'user_token=' . $this->session->data['user_token'],true) . '&action=purgeAllButton'  . '" data-toggle="tooltip" title="" class="btn" data-original-title="'. $lan->get('button_purgeAll') .'"><i class="fa fa-trash"></i><span class="hidden-xs hidden-sm hidden-md"> Purge All LiteSpeed Cache</span></a></li>';
            $search = '<ul class="nav navbar-nav navbar-right">';
            $output = str_replace($search, $search.$button, $output);
        }
    }
I'm not sure, but I think problem in these lines:
PHP:
            $lan = new Language();
            $lan->load('extension/module/lscache');
if be more corrected - in your SEO engine, like in your previous post about language_id in MySQL query.


how many languages available in System -> Localisation - Languages ?
I think you SEO engine incorrect work with multilanguage links and function $this->url->link generate three links for $this->url->link('extension/module/lscache route
 
#23
this button described in
admin/controller/extension/module/lscache.php
by this code:

PHP:
    public function purgeAllButton($route, &$args, &$output){
        if ($this->user && $this->user->hasPermission('modify', 'extension/module/lscache')) {
            $lan = new Language();
            $lan->load('extension/module/lscache');
            $button = '<li><a href="' . $this->url->link('extension/module/lscache', 'user_token=' . $this->session->data['user_token'],true) . '&action=purgeAllButton'  . '" data-toggle="tooltip" title="" class="btn" data-original-title="'. $lan->get('button_purgeAll') .'"><i class="fa fa-trash"></i><span class="hidden-xs hidden-sm hidden-md"> Purge All LiteSpeed Cache</span></a></li>';
            $search = '<ul class="nav navbar-nav navbar-right">';
            $output = str_replace($search, $search.$button, $output);
        }
    }
I'm not sure, but I think problem in these lines:
PHP:
            $lan = new Language();
            $lan->load('extension/module/lscache');
if be more corrected - in your SEO engine, like in your previous post about language_id in MySQL query.


how many languages available in System -> Localisation - Languages ?
I think you SEO engine incorrect work with multilanguage links and function $this->url->link generate three links for $this->url->link('extension/module/lscache route

Hello,i have only one language System -> Localisation - Languages ,it's Romanian,i deleted the seo engine,and nothing happens,i dont now what should i do!
Thank you!
 
Top