PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, November 12, 2022

[FIXED] How can I reset openedx static files cache?

 November 12, 2022     django, memcached, openedx, python     No comments   

Issue

I need to know how to force the openedx lms/cms to clear static files cache. When I browse the lms for example, I got the static files like that

/static/css/lms-style-vendor.XXXXXXX.css

I need to get the original source of this file not the cached one with XXXXXXX token. Or even generate a new one.

Also when I run django server, it take a while to load the modification in HTML templates.


Solution

I had a similar issue and figure out a way. You need to re-compile the theme. Here are the steps.

sudo -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=aws
paver update_assets lms --settings=aws
exit

This will update the files that are served from /edx/var/edxapp/staticfiles/images



Answered By - Shahzeb Khan
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing