mirror of
				https://github.com/kevinveenbirkenbach/homepage.veen.world.git
				synced 2025-11-04 01:18:09 +00:00 
			
		
		
		
	Pulled app/utils/cache_manager.py
This commit is contained in:
		@@ -23,7 +23,6 @@ class CacheManager:
 | 
				
			|||||||
        """
 | 
					        """
 | 
				
			||||||
        if not os.path.exists(self.cache_dir):
 | 
					        if not os.path.exists(self.cache_dir):
 | 
				
			||||||
            os.makedirs(self.cache_dir)
 | 
					            os.makedirs(self.cache_dir)
 | 
				
			||||||
            print(f"Created cache directory: {self.cache_dir}")
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def clear_cache(self):
 | 
					    def clear_cache(self):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
@@ -34,7 +33,6 @@ class CacheManager:
 | 
				
			|||||||
                file_path = os.path.join(self.cache_dir, filename)
 | 
					                file_path = os.path.join(self.cache_dir, filename)
 | 
				
			||||||
                if os.path.isfile(file_path):
 | 
					                if os.path.isfile(file_path):
 | 
				
			||||||
                    os.remove(file_path)
 | 
					                    os.remove(file_path)
 | 
				
			||||||
                    print(f"Deleted: {file_path}")
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def cache_file(self, file_url):
 | 
					    def cache_file(self, file_url):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user