mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-06 09:37:39 +02:00
[+] Add Mail Server to the left menu. [+] Add Mail Server - WebMail (requires Mail Server upgrade 5.1) [+] Add WP Toolkit Plugin, Theme installation. [+] Add Mail Server Login info. [+] Add Mail Server WebMail One-click Login (requires Mail Server upgrade 5.2). [+] Redesigned Security - Firewall. [*] Optimized Mass Mail sending speed. [*] Optimized the CPU usage problem of aaPanel startup service. [-] Fix apache application, renew SSL issue. [-] Fix Let's Encrypt account registeration failed. [-] Fix openlitespeed using capital letters on domain name caused the website cannot be accessed issue. [-] Fix problem of failure to reset root password in some versions of MariaDB. [-] Fix an error in modifying Permission in some cases of MySQL. [-] Fix the Website category display problem.
28 lines
556 B
Python
28 lines
556 B
Python
from .acquire import acquire
|
|
import threading
|
|
import gc
|
|
|
|
|
|
_GC_DISABLE_COUNT = 0
|
|
_GC_DISABLE_COUNT_LOCK = threading.Lock()
|
|
|
|
|
|
# 停用GC
|
|
def gc_disable():
|
|
with acquire(_GC_DISABLE_COUNT_LOCK, timeout=1):
|
|
global _GC_DISABLE_COUNT
|
|
_GC_DISABLE_COUNT += 1
|
|
if _GC_DISABLE_COUNT > 1:
|
|
return
|
|
gc.disable()
|
|
|
|
|
|
# 启用GC
|
|
def gc_enable():
|
|
with acquire(_GC_DISABLE_COUNT_LOCK, timeout=1):
|
|
global _GC_DISABLE_COUNT
|
|
_GC_DISABLE_COUNT -= 1
|
|
if _GC_DISABLE_COUNT > 0:
|
|
return
|
|
gc.enable()
|